package Messages;

import java.io.Serializable;
import java.util.ArrayList;
/**
 * Share a folder
 * @author Guy & Liel
 *
 */
public class ShareMsg implements Msg,Serializable
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private ArrayList<String> users;
	private String folderName;
	
	/**
	 * Constructor share a folder message
	 * @param users
	 * @param folderName
	 */
	public ShareMsg(ArrayList<String> users, String folderName) {
		super();
		this.users = users;
		this.folderName = folderName;
	}

	@Override
	/**
	 * get message type
	 */
	public MsgType getType() 
	{
		// TODO Auto-generated method stub
		return MsgType.SHARE;
	}
	/**
	 * get folder name
	 * @return String
	 */
	public String getFolderName() {
		return folderName;
	}
	/**
	 * get users that share folder
	 * @return ArrayList<String>
	 */
	public ArrayList<String> getUsers() {
		return users;
	}

}
